package com.app.demo.controller;

import com.app.core.mvc.returnvalue.ResultRespBody;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author qiangt
 * @version 1.0
 * @description: 测试限流
 * @date 2023/10/14 8:11
 */
@ResultRespBody
@RestController
@RequestMapping("/version")
@RequiredArgsConstructor
public class VersionController {

    @GetMapping("/v1")
    public String testVersion1() {
        return "v1.1";
    }

    @ResultRespBody(enabled = false)
    @GetMapping("/v2")
    public String testVersion2() {
        return "v1.2";
    }
}
